<?php
class N_DB_Driver_MysqlI extends mysqli 
{
	protected $_lastSql;
	
	public function beginTransaction()
	{
		$this->query('begin transaction');
	}
	
	public function query($sql)
	{
		$this->_lastSql = $sql;
		return parent::query($sql);
	}
}